<?php
require("./api/cal.api");
?>

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
  <title>calendar test</title>
</head>

<?php js_popup(); ?>

<body bgcolor="#ffffff">

<?php

if( !$y ) $y = date("Y");
if( !$m ) $m = date("m");

$mymonth = new month($m,$y);


echo "<h3>Calendar For: $mymonth->month_name, $mymonth->year</h3>\n";


echo "<table width=\"85%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n";
echo "<tr>\n";
echo "  <td bgcolor=\"#000066\">\n";

$mymonth->draw(array("cellspacing" => "2" , "cellpadding" => "2" ,
                      "top_row_align" => "center" , "table_height" => "300px" ,
                      "top_row_cell_height" => 20 , "bgcolor" => "#EEEEEE" ,
                      "row_align" => "left" , "row_valign" => "top" ,
                      "font_size" => "-1") );

echo "  </td>\n";
echo "</tr>\n";
echo "</table>\n";


?>
<br><center>
<a href="./cal.php3?m=<?php echo $mymonth->prevmonth; ?>&y=<?php echo $mymonth->prevyear; ?>">Prev. Month</a> &nbsp;&nbsp;
<a href="admin/">Add a Booking</a> &nbsp;&nbsp;
<a href="./cal.php3?m=<?php echo $mymonth->nextmonth; ?>&y=<?php echo $mymonth->nextyear; ?>">Next Month</a>
</center>
</body>
</html>
